import axios from '@/libs/apiRequest'

export const getBuildings = (data) => {
  return axios.request({
    url: '/api/admin/gc_bd',
    data: data,
    method: 'post',
    hideLoading:true
  })
}
export const getShopInfo = (data) => {
  return axios.request({
    url: '/api/admin/single_shop',
    data: data,
    method: 'post',
    hideLoading: true
  })
}
export const saveShop = (data) => {
  return axios.request({
    url: '/api/admin/save_shop',
    data: data,
    method: 'post',
    hideLoading: true
  })
}
export const getDevices = (data) => {
  return axios.request({
    url: '/api/admin/devices',
    data: data,
    method: 'post',
    hideLoading: true
  })
}
export const bindDevice = (data) => {
  return axios.request({
    url: '/api/admin/bind_dev',
    data: data,
    method: 'post',
    hideLoading: true
  })
}
export const unBindDevice = (data) => {
  return axios.request({
    url: '/api/admin/unbind_dev',
    data: data,
    method: 'post',
    hideLoading: true
  })
}





